import {ref} from "vue"
export default function (){
    let val=ref(0)
    function changeVal(){
        val.value+=1;
    }
    //向外部暴露数据
    return {val,changeVal};
}